Setting up Gitlab Advanced search 您所在的位置:网站首页 gitlab settings Setting up Gitlab Advanced search

Setting up Gitlab Advanced search

2023-03-15 12:54| 来源: 网络整理| 查看: 265

Home Blog Setting up Gitlab Advanced search Setting up Gitlab Advanced search By Mike Street 2023-03-16T00:00:00.000Z Scheduled for 16th March 2023. (from the future?) 2 mins reading time

A post from the future!

You may have noticed this post is dated in the future. I do this to keep myself on a regular writing schedule and to mask the flurries of activity I'm prone to. You can see all of my upcoming posts if you want a sneak peak

Please feel free to read and share as you normally would.

I managed to get a Gitlab Premium trial to see if it was right for our business. The big feature I was excited to try out was the Advanced search. This brings a Gitlab.com (and Github.com) style of "global search" to the install - being able to search in all the code is going to be incredible.

Having upgraded my Community Edition install is was disheartened to see the Advanced search required Elasticsearch to be set up, which is recommended to be on a different server.

The tutorial covers how to integrate with an Elasticsearch server, but not how to set it up. AWS is mentioned, along with Elastic Cloud, however I struggled to get either of these working as the AWS interface and user management is confusing and I couldn't figure what credentials to use for the Elastic cloud.

I was after a "straight-forward" and "cheap" solution to try the search - I was only on a trial of Gitlab so didn't want to go through the process of setting up a full infrastructural layer for something I could be deleting in less than 30 days. The other thing I didn't know was how much disk space I needed.

I ended up setting up a new server and installing Elasticsearch on it using DigitalOcean. With a swift Google, you can find an offer for some free credits ($200 at time of writing).

From there, I set up a new droplet: Ubuntu, 2 GB Memory, 2 Intel vCPUs and 60 GB Disk which casts $21 a month - I should be able to get a good few months for free while I trial Gitlab and the functionality.

Once the droplet was set up, I followed the DigitalOcean guide for setting up Elasticsearch.

The only difference to the article is I set the following:

network.host: 0.0.0.0cluster.initial_master_nodes: node-1

The first one makes it accessible to other servers, the second is required for "production mode".

From there, I followed the Gitlab tutorial ofr setting up the Advanced Search. I restricted the Elasticsearch server by IP instead of adding authorisation as it was for testing purposes.

Gitlab

View this post on Github



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有